package com.community.body.dto;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;

import java.util.Date;

public class ZyUnitDTO {
    @JsonSerialize(using = ToStringSerializer.class)
    private Long unitId;           // 单元ID
    private String unitName;       // 单元名称
    private String unitCode;       // 单元编码
    private Integer unitLevel;     // 层数
    private Double unitAcreage;    // 建筑面积
    private Boolean unitHaveElevator; // 是否有电梯
    private Date createTime;       // 创建时间
    private String remark;         // 备注

    // 楼栋信息
    @JsonSerialize(using = ToStringSerializer.class)
    private Long buildingId;    // 楼栋ID
    private String buildingName;   // 楼栋名

    // 小区信息
    @JsonSerialize(using = ToStringSerializer.class)
    private Long communityId;   // 小区ID
    private String communityName;  // 小区名称

    @Override
    public String toString() {
        return "ZyUnitDTO{" +
                "unitId=" + unitId +
                ", unitName='" + unitName + '\'' +
                ", unitCode='" + unitCode + '\'' +
                ", unitLevel=" + unitLevel +
                ", unitAcreage=" + unitAcreage +
                ", unitHaveElevator=" + unitHaveElevator +
                ", createTime=" + createTime +
                ", remark='" + remark + '\'' +
                ", buildingId=" + buildingId +
                ", buildingName='" + buildingName + '\'' +
                ", communityId=" + communityId +
                ", communityName='" + communityName + '\'' +
                '}';
    }

    public String getUnitCode() {
        return unitCode;
    }

    public void setUnitCode(String unitCode) {
        this.unitCode = unitCode;
    }

    public Long getUnitId() {
        return unitId;
    }

    public void setUnitId(Long unitId) {
        this.unitId = unitId;
    }

    public String getUnitName() {
        return unitName;
    }

    public void setUnitName(String unitName) {
        this.unitName = unitName;
    }

    public Integer getUnitLevel() {
        return unitLevel;
    }

    public void setUnitLevel(Integer unitLevel) {
        this.unitLevel = unitLevel;
    }

    public Double getUnitAcreage() {
        return unitAcreage;
    }

    public void setUnitAcreage(Double unitAcreage) {
        this.unitAcreage = unitAcreage;
    }

    public Boolean getUnitHaveElevator() {
        return unitHaveElevator;
    }

    public void setUnitHaveElevator(Boolean unitHaveElevator) {
        this.unitHaveElevator = unitHaveElevator;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Long getBuildingId() {
        return buildingId;
    }

    public void setBuildingId(Long buildingId) {
        this.buildingId = buildingId;
    }

    public String getBuildingName() {
        return buildingName;
    }

    public void setBuildingName(String buildingName) {
        this.buildingName = buildingName;
    }

    public Long getCommunityId() {
        return communityId;
    }

    public void setCommunityId(Long communityId) {
        this.communityId = communityId;
    }

    public String getCommunityName() {
        return communityName;
    }

    public void setCommunityName(String communityName) {
        this.communityName = communityName;
    }
}